import { reactive, ref } from "vue";

export default function InitHook() {
  const formState = reactive<{ fileList: Array<File> }>({
    fileList: []
  });
  const validateData = reactive<{
    passDepositList: Array<Base.GeneraDataType>;
    failDepositList: Array<Base.GeneraDataType>;
    passDepositSummaryList: Array<Base.GeneraDataType>;
  }>({
    passDepositList: [],
    failDepositList: [],
    passDepositSummaryList: []
  });
  const step = ref<number>(1);
  const loading = ref<boolean>(false);
  return {
    formState,
    step,
    loading,
    validateData
  };
}
